package com.xz.coursearrange.entity.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Descripe:
 */
@Data
public class ClassroomAddRequest implements Serializable {

    private static final long serialVersionUID = -4307053023235633239L;

    /**
     * 教室编号
     */
    @NotBlank(message = "教室编号不能为空")
    @Size(max = 20, message = "教室编号长度不能超过20个字符")
    private String classroomNo;

    /**
     * 教室名称
     */
    @NotBlank(message = "教室名称不能为空")
    @Size(max = 50, message = "教室名称长度不能超过50个字符")
    private String classroomName;

    /**
     * 所属教学楼
     */
    @NotBlank(message = "所属教学楼不能为空")
    @Size(max = 20, message = "教学楼编号长度不能超过20个字符")
    private String teachbuildNo;

    /**
     * 教室容量
     */
    @NotNull(message = "教室容量不能为空")
    @Min(value = 1, message = "教室容量必须大于0")
    private Integer capacity;

    @Size(max = 200, message = "备注长度不能超过200个字符")
    private String remark;
}
